<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
    <meta charset="utf-8">
    <title>合约购买管理</title>

</head>
<style>
    /**内容超出 出现滚动条 **/
    .bui-stdmod-body {
        overflow-x: hidden;
        overflow-y: auto;
    }

</style>
<body>
<%@ include file="/common/head.builive.inc.jsp" %>
<div class="demo-content">
    <div class="row">
        <div class="span24">
            <form id="purchaseRecordSearchForm" class="form-horizontal" tabindex="0" style="outline: none;">
                <div class="row">
                    <div class="control-group span8">
                        <label class="control-label">用户名：</label>
                        <div class="controls">
                            <input type="text" name="userName" class="control-text">
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">合约：</label>
                        <div class="controls">
                            <select name="contractId" class="contractId"></select>
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">状态：</label>
                        <div class="controls">
                            <select name="state" class="state"></select>
                        </div>
                    </div>
                    <div class=" control-group span12">
                        <label class="control-label">收益时间：</label>
                        <div class="bui-form-group controls"
                             data-rules="{dateRange : [true,'begin date can not big than end date']}">
                            <input name="startTime" type="text" class="calendar"/> - <input name="endTime" type="text"
                                                                                            class="calendar"/>
                        </div>
                    </div>
                    <div class="form-actions span2">
                        <button id="btnSearch" type="submit" class="button button-primary">搜索</button>
                    </div>
                </div>

            </form>

        </div>
    </div>
    <div class="search-grid-container">
        <div id="purchaseRecordGrid">
        </div>
    </div>
</div>
<!-- 此节点内部的内容会在弹出框内显示,默认隐藏此节点-->

<div id="purchaseRecordEditFormDialogContent" style="display: none;">
    <form id="purchaseRecordEditForm" class="form-horizontal ">
        <div class="row">
            <div class="control-group span14">
                <label class="control-label">用户：</label>
                <input type="hidden" name="id"/>
                <div class="controls">
                    <select name="userId" class="userId" data-rules="{required:true}"></select>
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">合约：</label>
                <div class="controls">
                    <select name="contractId" class="contractId1" data-rules="{required:true}"></select>
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">单价：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true}{required:true}"
                           name="price">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">数量：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true}{required:true}"
                           name="number">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">金额：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true}{required:true}"
                           name="money">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">算力：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text"
                           data-rules="{number:true}{required:true}"
                           name="computingPower">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">购买时间：</label>
                <div class="controls">
                    <input type="text" class="input-normal presentTime  control-text calendar calendar-time "
                           name="createTime">
                </div>
            </div>
            <div class="control-group span9">
                <label class="control-label">状态：</label>
                <div class="controls">
                    <select name="state" class="state1"></select>
                </div>
            </div>
        </div>
    </form>

</div>
<script src="js/purchaseRecord.js"></script>
</body>
</html>